package com.letoken.platform.repo.app.po;


import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

import java.time.LocalDateTime;

@Getter
@Setter
@TableName("videos")
public class Video {

    public Integer id;
    public Integer publisher;
    public String url;
    public String poster;
    public Integer status;

    @TableField("audit_status")
    public Integer auditStatus;

    @TableField("product_id")
    public Integer productId;
    public String description;

    @TableField("created_at")
    public LocalDateTime createdAt;

    @TableField("updated_at")
    public LocalDateTime updatedAt;

    @TableField("comments_count")
    public Integer commentsCount;


    @TableField("favorites_count")
    public Integer favoritesCount;


    @TableField("likes_count")
    public Integer likesCount;


    public Video(){}

    public Video(Integer id, Integer status) {
        this.id = id;
        this.status = status;
    }
}
